﻿<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">OntologyLookup</Field>
    <Field Name="ParentType">Text</Field>
    <Field Name="TypeDisplayName">Ontology Lookup</Field>
    <Field Name="TypeShortDescription">Lookup some Ontology</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="ShowOnListCreate">TRUE</Field>
    <Field Name="ShowOnSurveyCreate">TRUE</Field>
    <Field Name="ShowOnDocumentLibraryCreate">TRUE</Field>
    <Field Name="ShowOnColumnTemplateCreate">TRUE</Field>

    <PropertySchema>
      <Fields>
        <Field Name="PropertyUri" DisplayName="Property URI" Type="Text" Hidden="FALSE"> </Field>
        <Field Name="OntologyGuid" DisplayName="ontology GUID" Type="Text" Hidden="FALSE"> </Field>

        <!-- Fields for the rendering of filter entries -->
        <Field Name="FilterAssemblyStrongName" DisplayName="FilterAssemblyStrongName" Type="Text" Hidden="TRUE" />
        <Field Name="FilterClassName" DisplayName="FilterClassName" Type="Text" Hidden="TRUE" />
        <Field Name="FilterMethodName" DisplayName="FilterMethodName" Type="Text" Hidden="TRUE" />
      </Fields>
    </PropertySchema>
    
    <Field Name="FieldTypeClass">RepositoryOntologies.OntologyLookupField, $SharePoint.Project.AssemblyFullName$</Field>
  </FieldType>

  <FieldType>
    <Field Name="TypeName">OntologyData</Field>
    <Field Name="ParentType">Text</Field>
    <Field Name="TypeDisplayName">Ontology Data</Field>
    <Field Name="TypeShortDescription">Data for some Ontology</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="ShowOnListCreate">TRUE</Field>
    <Field Name="ShowOnSurveyCreate">TRUE</Field>
    <Field Name="ShowOnDocumentLibraryCreate">TRUE</Field>
    <Field Name="ShowOnColumnTemplateCreate">TRUE</Field>

    <PropertySchema>
      <Fields>
        <Field Name="PropertyUri" DisplayName="Property URI" Type="Text" Hidden="FALSE"> </Field>
        <Field Name="OntologyGuid" DisplayName="ontology GUID" Type="Text" Hidden="FALSE"> </Field>
      </Fields>
    </PropertySchema>

    <Field Name="FieldTypeClass">RepositoryOntologies.OntologyDataField, $SharePoint.Project.AssemblyFullName$</Field>
  </FieldType>
</FieldTypes>